# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pykka
pkgver=3.0.1
pkgrel=1
pkgdesc="Concurrency abstractions for Python3 using the actor model"
url="https://pykka.readthedocs.org/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/p/pykka/pykka-$pkgver.tar.gz"
options="!check" # Pypi release contains no tests and Github source has no setup.py
builddir="$srcdir/pykka-$pkgver"

replaces="py-pykka" # Backwards compatibility
provides="py-pykka=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
384866f8257040f67cc65de23773bfdbedecd88961570fb579c96d8f8348546f3b7eb1e64420f68ad4623448a45556a9c1dc5f255405b8da4ed61601257540fb  pykka-3.0.1.tar.gz
"
